package com.yuyou.tas.feedback.service;

import com.yuyou.tas.service.api.feedback.entity.FeedbackNote;
import com.yuyou.tas.service.api.feedback.vo.resp.FeedbackNoteMoreVo;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;
import com.yuyou.tas.util.bean.ReturnResult;

import java.util.List;

public interface IFeedbackNoteService {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackNote record);

    FeedbackNote selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackNote record);

    /**
     * 批量添加优秀笔记
     * @param feedbackClassId
     * @param urls
     * @param organId
     * @param userId
     * @return
     */
    ResBoolSimpleInfo addFeedbackNote(Long feedbackClassId, String urls, Long organId, Long userId);

    /**
     * 删除优秀笔记
     * @param feedbackNoteId
     * @return
     */
    ReturnResult delFeedbackNote(Long feedbackNoteId);

    /**
     * 通过班级反馈回去优秀学生笔记
     * @param feedbackClassId
     * @return
     */
    List<FeedbackNoteMoreVo> findByFeedClassId(Long feedbackClassId);

    /**
     * 获取全部需要处理的资源
     * 微信图片->七牛云
     * @return
     */
    List<FeedbackNote> findAllNeedOperate();
}